﻿using System.Diagnostics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using AmazonCommon.Amazon.ECS;
using System.Collections.Generic;

namespace AmazonCommon.Tests
{


    /// <summary>
    ///This is a test class for AmazonHelperTest and is intended
    ///to contain all AmazonHelperTest Unit Tests
    ///</summary>
    [TestClass()]
    public class AmazonHelperTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for GetAmazonClient
        ///</summary>
        [TestMethod()]
        public void GetAmazonClientTest()
        {
            //AWSECommerceServicePortTypeClient expected = null; // TODO: Initialize to an appropriate value
            AWSECommerceServicePortTypeClient actual;
            actual = AmazonHelper.GetAmazonClient();
            //Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        
        
        /// <summary>
        ///A test for SearchProductsByCategory
        ///</summary>
        [TestMethod()]
        public void SearchProductsByCategoryTest()
        {
            string category = "Automotive"; // TODO: Initialize to an appropriate value
            string keyword = "tire"; // TODO: Initialize to an appropriate value
            int page = 0; // TODO: Initialize to an appropriate value
            string sortvalue = "-price"; // TODO: Initialize to an appropriate value            
            Items actual;
            actual = AmazonHelper.SearchProductsByCategory(category, keyword, page, sortvalue);
            
        }

        /// <summary>
        ///A test for GetChildBrowseNodes
        ///</summary>
        [TestMethod()]
        public void GetChildBrowseNodesTest()
        {
            string nodeid = "1036592"; // TODO: Initialize to an appropriate value
            //BrowseNode[] expected = null; // TODO: Initialize to an appropriate value
            BrowseNode[] actual;
            actual = AmazonHelper.GetChildBrowseNodes(nodeid);
            //
        }



        
    }
}
